<%@ page language="java" pageEncoding="UTF-8"
%><script type="text/javascript" src="${pageContext.request.contextPath}/js/datePicker/WdatePicker.js?t=${commonAppTimestamp}"></script>
<script type="text/javascript">
<!--//--><![CDATA[//><!--

var app_query_date_picker = function(startId,endId,showClear){
	var isShowClear = false;
	if(showClear == true){
		isShowClear = true;
	}else{
		isShowClear = false;
	}
   
	var startDatePicker = function(){
		WdatePicker({
			//skin:'green',
			maxDate : '#F{$dp.$D(\'' + endId + '\')}',
			//doubleCalendar : true,
			dateFmt : 'yyyy-MM-dd',
			isShowClear : isShowClear,
			readOnly : true
		});
	};
	
	var endDatePicker = function(){
		WdatePicker({
			//skin:'green',
			minDate : '#F{$dp.$D(\'' + startId+ '\')}',
			//doubleCalendar : true,
			dateFmt : 'yyyy-MM-dd',
			isShowClear : isShowClear,
			readOnly : true
		});
	};
	
   
	//日期选择
	$('#' + startId).addClass("Wdate");
	$('#' + endId).addClass("Wdate");

	$('#' + startId).click(startDatePicker);
	$('#' + startId).focus(startDatePicker);
	
	
	$('#' + endId).click(endDatePicker);
	$('#' + endId).focus(endDatePicker);
	
   
}
//--><!
</script>